package com.np.demo1.callback1;

import java.util.List;

public class Index {
    public void test1() {

        new A().execute(new ICallBack() {
            @Override
            public Object process(List param) {
                for (Object obj : param) {
                    System.out.println(obj);
                }
                return null;
            }
        });

        new A().execute((param) -> {
            for (Object obj : param) {
                System.out.println(obj);
            }
            return true;
        });
    }
}
